//
//  ActorOneView.m
//  ModuleTesting
//
//  Created by duc nguyen van on 8/31/11.
//  Copyright 2011 STU. All rights reserved.
//

#import "ActorOneView.h"


@implementation ActorOneView

#pragma mark -
#pragma mark delegateResizeView

-(void)resizeWithView:(CGSize)s{
	imageView.frame = CGRectMake(0, 0, s.width, s.height);
}

#pragma mark -
#pragma mark init

-(id)initWithDefaultImage{
	UIImage *image = [UIImage imageNamed:@"actor1.png"];
	imageView = [[UIImageView alloc] initWithImage:image];
	
	self = [super initWithSizeForResizeView:imageView.frame.size];
	if (self) {
		// Initialization code.
		self.frame = CGRectMake(0, 0, imageView.frame.size.width, imageView.frame.size.height);
		
		[self addSubview:imageView];
		[self addSubview:reView];
		[imageView release];
	}
	return self;
}

- (id)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code.
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code.
}
*/

- (void)dealloc {
	[imageView release];
    [super dealloc];
}


@end
